const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    proxy: {
      '/api': {
        target: 'http://42.194.159.131:8080',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  },
  publicPath: './'
  // configureWebpack: {
  //   server: {
  //     proxy: {
  //       '/api': {
  //         target: 'http://42.194.159.131:8080',
  //         changeOrigin: true,
  //         rewrite: (path) => path.replace(/^\/api/, '')
  //       }
  //     }
  //   }
  // }
})
